package com.our.sys.project1.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

import org.springside.modules.orm.grid.ViewField;

/**
 * 配发
 * @author acer
 *
 */
@Entity
@Table(name = "T_ReadySend")
public class ReadySend implements Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = 3160503542781022239L;
    @ViewField
    private Long id;

    @ViewField
    private Long personId;

    @ViewField(header = "手术房间", width = 100, align = "left")
    private String actionRoom;

    @ViewField(header = "台次", width = 100, align = "left")
    private String num;

    @ViewField
    private Long tofficesId;

    @ViewField(header = "手术医师", width = 100, align = "left")
    private String docName;

    @ViewField(header = "配发时间", width = 100, align = "left")
    private String readySendTime;

    @ViewField(header = "配发护士", width = 100, align = "left")
    private String readySendWho;

    @ViewField(header = "是否需要补录", width = 100, align = "left")
    private String state;//0.正常情况，不需要补录，1.门急诊，需要补录，2.已划价

    @Id
    @GeneratedValue(strategy = GenerationType.TABLE, generator = "Id_Generator")
    @TableGenerator(name = "Id_Generator", table = "ID_GENERATOR", pkColumnName = "GEN_NAME", valueColumnName = "GEN_VAL", pkColumnValue = "T_ReadySend")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getPersonId() {
        return personId;
    }

    public void setPersonId(Long personId) {
        this.personId = personId;
    }

    public String getActionRoom() {
        return actionRoom;
    }

    public void setActionRoom(String actionRoom) {
        this.actionRoom = actionRoom;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public Long getTofficesId() {
        return tofficesId;
    }

    public void setTofficesId(Long tofficesId) {
        this.tofficesId = tofficesId;
    }

    public String getDocName() {
        return docName;
    }

    public void setDocName(String docName) {
        this.docName = docName;
    }

    public String getReadySendTime() {
        return readySendTime;
    }

    public void setReadySendTime(String readySendTime) {
        this.readySendTime = readySendTime;
    }

    public String getReadySendWho() {
        return readySendWho;
    }

    public void setReadySendWho(String readySendWho) {
        this.readySendWho = readySendWho;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

}
